package com.topc.problem.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 问题标签关系表
 * </p>
 *
 * @author itcast
 */
@Data
@TableName("problem_tag_mid")
public class ProblemTagMid  {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long problemId;

    private Long tagId;

    @ApiModelProperty(name = "创建时间", notes = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public ProblemTagMid(Long problemId, Long tagId) {
        this.problemId = problemId;
        this.tagId = tagId;
    }

    public ProblemTagMid() {
    }
}
